package com.will.reader.chapterList.viewmodel

import androidx.lifecycle.ViewModel
import com.will.reader.data.model.Chapter

/**
 * created  by will on 2020/12/13 16:32
 */
class ChapterIndexingViewModel(): ViewModel() {

    private val chapters = mutableListOf<Chapter>()


    fun addChapter(chapter: Chapter){
        chapters.add(chapter)
    }

    fun getChapters(): List<Chapter> {
        return chapters.toList()
    }
}